package com.cyandpos.pad.sale.view;

import com.cyandpos.pad.posdata.Goods;
import com.cyandpos.pad.posdata.Member;
import com.cyandpos.pad.posdata.Person;
import com.cyandpos.pad.posdata.PromationoodInfo;
import com.cyandpos.pad.posdata.QueryMemberReq;
import com.cyandpos.pad.posdata.SubTicketItem;
import com.cyandpos.pad.posdata.TicketInfo;

import java.util.List;

public interface ISaleView {
    void showProgress(String msg);
    void dismissProgress();
    void loadFail(String msg, int id);//加载失败
    void createOrderNO(String order);   //创建订单
    void addPerson(Person person);   //添加营业员
    void handleGoods(Goods goods);  //添加商品
    void preparePay(TicketInfo ticketInfo, boolean isPromotion,List<PromationoodInfo> exchangeGoodBillInfoList, List<PromationoodInfo> giftGoodsBillList);  //准备付款
    void frontDiscount(List<Goods> goods, boolean isSingle);
    void cancelOrder(String orderNo);  //取消订单
    void addMember(Member member);  //添加会员
    void onRegisterMemberFailure(QueryMemberReq memberReq, String err);//会员查询不存在，注册
//    void queryOrder(List<SubTicketItem> orderNo);  //查询开单小票
}
